import request from '@/utils/request'

export const getTypeList = function(params) {
  return request({
    url: '/api/vm-service/vmType/search',
    method: 'GET',
    params
  })
}

export const removeTypeList = function(id) {
  return request({
    url: '/api/vm-service/vmType/' + id,
    method: 'DELETE'
  })
}

export const updataTypeList = function(data) {
  return request({
    url: '/api/vm-service/vmType/' + data.typeId,
    method: 'PUT',
    data
  })
}

export const addTypeList = function(data) {
  return request({
    url: '/api/vm-service/vmType',
    method: 'POST',
    data
  })
}
